package com.jingyanzi.member.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.sys.domain.DictionariesDO;
import com.jingyanzi.sys.domain.RegionDO;

@FeignClient("sys-service")
@RestController
@RequestMapping("/api")
public interface DicClientAPI {
	
	@RequestMapping("/dic/{id}")
	public DictionariesDO get(@PathVariable(value = "id")Integer id);
	
	@RequestMapping("/region/{province}/{city}/{district}")
	public RegionDO getRegionDO(@PathVariable(value = "province") String province,
			@PathVariable(value = "city") String city, @PathVariable(value = "district") String district);
	
}